﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using GameStateManagement;
using BHG.System;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Controllers;
using FarseerPhysics.Dynamics.Contacts;

namespace BHG.GameData
{
    class Credits : GameplayScreen
    {
        Song song;
        /// <summary>
        /// load ALL content
        /// </summary>
        public override void LoadContent()
        {
            base.LoadContent();
            MediaPlayer.Stop();
            song = content.Load<Song>("Sound/music/13 Overpass 90 Master");

            MediaPlayer.Play(song);
        }

        /// <summary>
        ///  Update base, then update level.
        /// </summary>
        /// <param name="gameTime"></param>
        /// <param name="otherScreenHasFocus"></param>
        /// <param name="coveredByOtherScreen"></param>
        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            // generic update, update physics, call only once
            base.Update(gameTime, otherScreenHasFocus, false);

        }
        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
                ScreenManager.SpriteBatch.Begin();
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "And so the Black Hole Gunner was teleported.", new Vector2(40, 40), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "He wasn't teleported back to home, not yet.", new Vector2(40, 80), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "He has to save the whole universe first!", new Vector2(40, 120), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "In next game BLACK HOLE GUNNER 2! (maybe)", new Vector2(40, 160), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Made by : Libor Vilimek", new Vector2(40, 240), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "           Jan Svehla", new Vector2(40, 280), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "           Vojtech Ruschka", new Vector2(40, 320), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Music by : http://www.icompositions.com/artists/Trevs", new Vector2(40, 360), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Czech Technical University (CVUT) 2010 - FEL", new Vector2(40, 440), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Made in XNA 4.0, using Visual Studio, Codeplex, Farseer Physics", new Vector2(40, 480), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "All source codes at : http://bhg.codeplex.com/", new Vector2(40, 520), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Special thanks to Ing. Michal Hapala and Ing. Jan Burianek", new Vector2(40, 560), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "   for interesting school subject *Computer games and Animations*", new Vector2(40, 600), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Made in 2,5 month with no game-creating experience.", new Vector2(40, 680), Color.Red);
                ScreenManager.SpriteBatch.DrawString(ScreenManager.Font, "Thanx for playing", new Vector2(40, 720), Color.Red);
                ScreenManager.SpriteBatch.End();
        }
    }
}
